﻿namespace SQLStore
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class CMSDBContext : DbContext
    {
        public CMSDBContext()
            : base("name=CMSDB")
        { }
        public CMSDBContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        { }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //modelBuilder.Configurations.Add(new DictionaryMap());
            modelBuilder.Configurations.Add(new CategoryMap());
            modelBuilder.Configurations.Add(new TagMap());
            modelBuilder.Configurations.Add(new ContentsMap());
            modelBuilder.Configurations.Add(new RelevanceMap());
        }
    }
}
